package cz.cvut.fit.web.nakupniSeznam;

public class Constants {
	
	//*********************************************** TRANSACTIONS ***********************************************//
	
	public static final String SAVE_COMPLETE = "saving complete";
	public static final String SAVE_FAILED = "saving failed";
	
	public static final String REMOVE_COMPLETE = "removing complete";
	public static final String REMOVE_FAILED = "removing failed";
	
	public static final String USER_REMOVED_FROM_LIST = "removing complete";
	public static final String LIST_REMOVED_FROM_USER= "removing complete";
	
	public static final String NO_BD_RESULT= "no results found";
	public static final String DB_BAD_DATA_FORMAT = "bad data format recieved";
	
	public static final String ITEM_SAVE_COMPLETE = "item saving complete";
	public static final String CATEGORY_SAVE_COMPLETE = "category saving complete";
	public static final String UNIT_SAVE_COMPLETE = "unit saving complete";
	public static final String LIST_SAVE_COMPLETE = "list saving complete";
	
	//*********************************************** WEB SERVICES STRINGS ***********************************************//
	public static final String WS_USER_COMPLETE = "called ws on specific user";
	public static final String WS_LIST_COMPLETE = "called ws on specific list";
	public static final String WS_CATEGORIES_COMPLETE = "called ws on specific categories";
	public static final String WS_UNITS_COMPLETE = "called ws on specific units";
	public static final String WS_ITEM_COMPLETE = "called ws on specific item";
	
	public static final String WS_USER_DELETED = "user succesfully deleted";
	
	public static final String WS_FAILED = "ws call failed";
	public static final String WS_ID_NOT_FOUND = "specified item not found";
	public static final String WS_BAD_FORMAT = "bad request format";
	
	public static final String WS_UNAUTHORIZED_ACCES = "unauthorized access";
	
	public static final String WS_NO_KEY_HEADER = "No key parameter in header - possible unauthorized access";
	
	public static final String WS_KEEP_ALIVE_LOG = "called keep alive";
	
	//*********************************************** WEB SERVICES VALUES ***********************************************//
	public static final int CONSTRAINT_KEY_LENGTH = 10;
	public static final int CONSTRAINT_ID_MIN_VALUE = 1;
	
	public static final String HEADER_USER_NAME = "key";
	public static final String HEADER_LOCATION = "location";
	
	//public static final String WS_PRODUCES = "application/xml; charset=UTF-8";
	public static final String WS_PRODUCES = "application/json; charset=UTF-8";
	public static final String WS_CONSUMES = "application/json; charset=UTF-8";
	
	public static final String WS_KEEP_ALIVE = "keep alive";

}
